package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class IntervalValueExpressionPlusDatetimeTerm implements DatetimeValueExpression {

    private int beginIndex;
    private int endIndex;
    private IntervalValueExpression intervalValueExpression;
    private DatetimeTerm datetimeTerm;

    public IntervalValueExpressionPlusDatetimeTerm(IntervalValueExpression intervalValueExpression,
                                                   DatetimeTerm datetimeTerm) {
        this.beginIndex = intervalValueExpression.getBeginIndex();
        this.endIndex = datetimeTerm.getEndIndex();
        this.intervalValueExpression = intervalValueExpression;
        this.datetimeTerm = datetimeTerm;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public IntervalValueExpression getIntervalValueExpression() {
        return intervalValueExpression;
    }

    public DatetimeTerm getDatetimeTerm() {
        return datetimeTerm;
    }

}
